import Vue from 'vue'
import VueRouter from 'vue-router'
const background=() =>import('../components/Background.vue')
const indexs=() =>import('../components/IndexLY/Index.vue')


Vue.use(VueRouter)

const routes = [
  // { 
  //   path: '/',
  //   name: 'index',
  //   component: indexs
  // },
  {
    path: '/',
    name: 'index',
    component: () => import('../components/Index.vue'),
    children:[
      {path:'/indexs',name:'indexs',component:indexs},
    ]
  },
  {
    path: '/background',
    name: 'background',
    component: () => import('../components/Background.vue')
  }

]

const router = new VueRouter({
  routes
})

export default router
